package com.cssy.yd.logic.dao;

import com.cssy.yd.logic.entity.LogicProGetApplyDO;
import com.plat.helper.SearchConditions;

import java.util.List;
import org.springframework.dao.DataAccessException;

/**
 * 数据访问对象接口
 * @since 2013-08-12
 */
public interface LogicProGetApplyDAO {

    /**
     * 插入数据
     * @param logicProGetApplyDO
     * @return 插入数据的主键
     */
    public String insertLogicProGetApplyDO(LogicProGetApplyDO logicProGetApplyDO) throws DataAccessException;

    /**
     * 统计记录数
     * @param logicProGetApplyDO
     * @return 查出的记录数
     */
    public Integer countLogicProGetApplyDOByExample(LogicProGetApplyDO logicProGetApplyDO) throws DataAccessException;

    /**
     * 更新记录
     * @param logicProGetApplyDO
     * @return 受影响的行数
     */
    public Integer updateLogicProGetApplyDO(LogicProGetApplyDO logicProGetApplyDO) throws DataAccessException;

    /**
     * 获取对象列表
     * @param logicProGetApplyDO
     * @return 对象列表
     */
    public List<LogicProGetApplyDO> findListByExample(LogicProGetApplyDO logicProGetApplyDO) throws DataAccessException;

    /**
     * 根据主键获取logicProGetApplyDO
     * @param id
     * @return logicProGetApplyDO
     */
    public LogicProGetApplyDO findLogicProGetApplyDOByPrimaryKey(String id) throws DataAccessException;

    /**
     * 删除记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteLogicProGetApplyDOByPrimaryKey(String id) throws DataAccessException;

    /**
     * 查询
     * @param 
     * @return LogicProGetApplyDO
     */
    public List<LogicProGetApplyDO> find(SearchConditions scs) throws DataAccessException;
    
    /**
     * 
     * @param LogicProGetApplyDO
     * @return 
     */
    public Integer count(SearchConditions scs) throws DataAccessException;
}